# import unittest
#
# version = 29
import unittest

version = 19


# class TestSkip(unittest.TestCase):
class TestSkip(unittest.TestCase):

    #     @unittest.skip('没什么原因,就是不想执行')
    #     def test_1(self):
    #         print('方法一')

    def test_1(self):
        print("方法一")

    #     @unittest.skipIf(version >= 30, '版本号大于等于 30, 测方法不用执行')
    #     def test_2(self):
    #         print('方法二')
    @unittest.skip("没有原因就是不想执行")
    def test_skip(self):
        print('方法二')

    @unittest.skipIf(version >= 20, '版本号大于等于20时不执行')
    def test_skipIf(self):
        print("方法三")


if __name__ == '__main__':
    unittest.main()
